package com.zygh.coordinatestore.service.impl;

import com.zygh.coordinatestore.entity.Equipment;
import com.zygh.coordinatestore.mapper.EquipmentMapper;
import com.zygh.coordinatestore.service.EquipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class EquipmentServiceImp implements EquipmentService {
    @Autowired
    private EquipmentMapper equipmentMapper;
    /**
     * 插入所有设备从oracle到postgre
     * @param list 设备
     * @return int
     */
    @Override
    public int insertAll(List<Equipment> list) {
        return equipmentMapper.insertEquipment(list);
    }

}
